<div class="box">
	<h1 class="o9"><?php echo $this->escape($this->special['title']);?></h1>
	<em class="specialPtotal number"><?php echo $this->special['ptotal'];?> photo(s)</em>
	<div class="info">
		<div class="btn">
			<p class="tags">
				<?php echo $this->language('标签')?>:
				<?php
				$tags = array();
				foreach($this->special['_keywords'] AS $tag) {
					$tags[] = '<a href="' . $tag['_url'] . '">' . $this->escape($tag['name']) . '</a>';
				}
				echo implode(',', $tags);
				?>
			</p>
		</div>
		<ul class="np o6">
			<li class="prev"><?php 
			$previous = $this->special['_previous'];
			if(!empty($previous)) {
				echo '<a href="' . $previous['_gurl'] . '">';
				echo $this->language('前一组好图');
				echo ': ' . $this->escape($previous['title']) . '(<em class="red number">' . $previous['ptotal'] . '</em>)</a>';
			} else {
				echo $this->language('前一组好图') . ': ';
			}
			?></li>
			<li class="next"><?php 
			$next = $this->special['_next'];
			if(!empty($next)) {
				echo '<a href="' . $next['_gurl'] . '">';
				echo $this->language('后一组好图');
				echo ': ' . $this->escape($next['title']) . '(<em class="red number">' . $next['ptotal'] . '</em>)</a>';
			} else {
				echo $this->language('后一组好图') . ': ';
			}
			?></li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="bd">
		<ul class="list">
			<?php foreach($this->special['_photos'] AS $row) { ?>
			<li>
				<div class="img">
					<a href="<?php echo $row['_url'];?>">
					<img src="<?php echo $row['_image']['small'];?>" alt="<?php echo $this->escape($row['title']);?>" />
					</a>
				</div>
			</li>
			<?php } ?>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<div class="box">
	<div class="bd">
		<?php echo $this->advertise('banner300x50')->render($this->client);?>
	</div>
</div>
<div class="box">
	<div class="hd">
		<h3><?php echo $this->language('相关推荐');?></h3>
		<code><a href="<?php echo $this->url('index/recommend', array('page' => '1'));?>"><?php echo $this->language('更多')?></a></code>
	</div>
	<div class="bd">
		<?php
		$related = array();
		foreach($this->special['_related'] AS $key => $row) {
			if($key > 8) continue;
			$related[] = $row;
		}
		echo $this->partial('include/specialList.phtml', 
				array(
					'row' => false, 
					'list' => $related
				)
		);?>
	</div>
	<div class="clear"></div>
</div>
<?php //echo $this->render('include/comment.phtml');?>
